'use strict';

const { io } = require("../config/plugin");

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { io, router, controller } = app;

  router.get('/', controller.home.index);

  // socket.io
  io.of('/').route('info', io.controller.default.info);
};
